package internet;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Internet {
    public static void main(String[] args) {
        try {
            InetAddress inetAddress1 = InetAddress.getByName("flowercoder.icu");
            System.out.println(inetAddress1.getHostName());
            System.out.println(inetAddress1.getHostAddress());
            System.out.println(inetAddress1);
            System.out.println(inetAddress1.getCanonicalHostName());
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
    }
}
